package com.demdevdudes.disch.handler;

import java.util.HashMap;
import java.util.Map;

import com.badlogic.gdx.graphics.OrthographicCamera;
import com.demdevdudes.disch.gamestates.GameState;
import com.demdevdudes.disch.gamestates.GameStateEnum;
import com.demdevdudes.disch.gamestates.StateIntro;

public class GameStateHandler {

	private static Map<GameStateEnum, GameState> gameStates;
	private static GameStateEnum currentGameState;
	
	public GameStateHandler(OrthographicCamera camera) {
		gameStates = new HashMap<GameStateEnum, GameState>();
		gameStates.put(GameStateEnum.INTRO, new StateIntro(camera));
		currentGameState = GameStateEnum.INTRO;
	}

	public static GameState getCurrentGameState() {
		return gameStates.get(currentGameState);
	}
	
	public static void setGameState(GameStateEnum state) {
		currentGameState = state;
	}
	
}
